package com.briup.jd2511.jd2511_product_source.controller;

import com.briup.jd2511.jd2511_product_source.result.Result;
import com.briup.jd2511.jd2511_product_source.service.ManagerBatchService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "批次记录模块")
@RestController
@RequestMapping("/batch")
public class BatchController {
    @Autowired
    private ManagerBatchService managerBatchService;

    @GetMapping("/queryAll")
    @Operation(summary = "查询所有批次")
    public Result getAll(){
        return Result.success(managerBatchService.getAll());
    }
}